const proxy = require('koa-proxy');

module.exports.entry = function (app, router, opts) {
    app.use(proxy({
        host: opts.host,
        match: opts.match,
        map: function (path) {
            return path.replace(opts.match, '');
        },
        suppressRequestHeaders: ['content-length'],
    }))    
}